package com.edu.statisticsservice.client;

import com.edu.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName UcenterMemberClient
 * @date 2022/9/26 10:47
 * @Version 1.0
 */
@Component
@FeignClient(name = "service-ucenter")
public interface UcenterMemberClient {

    //查询某一天的注册人数
    @PostMapping("/ucenterservice/ucentermember/register/{day}")
    @ResponseBody
    public R getDate(@PathVariable("day") String day);

    @PostMapping("/ucenterservice/ucentermember/test")
    public R gettest();

}
